import { CPC,Cesium } from "@cpc/cesium-api";

export class CpcCesium {
    constructor(domId: string) {
        const map = new CPC({
            container: domId,
            baseMaps: [
                "http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer",
            ],
            camera: {
                position: {
                  x: 119.4135823,
                  y: 26.11072,
                  z: 9999999,
                },
                angle: {
                  heading: 0,
                  pitch: -90,
                  roll: 0,
                },
              },
        });
        map.viewer.dataSources.add(Cesium.CzmlDataSource.load("./czml/GAOFEN1.czml"));
        map.globalRotate.start(0.006);
    }
}